export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "addBtn": false,
  searchMenuSpan: 6,
  viewBtn: true,
  editBtn: false,
  delBtn: false,
  selection: true,
  selectable: row => {
    return row.accDataStatus == 1
  },
  "column": [{
    "type": "input",
    "label": "唯一标识",
    "prop": "id",
    "display": false,
    "hide": true
  }, {
    "type": "input",
    "label": "卡号",
    "prop": "cardOrder",
    "search": true,
    searchLabelWidth: 100,
    display: false
  }, {
    "type": "select",
    "label": "提交线路",
    "prop": "submitLineCode",
    "search": true,
    "readonly": true,
    "dicUrl": "/support/swparamline/dict",
    "props": {
      "label": "name",
      "value": "code"
    },
    display: false
  }, {
    "type": "select",
    "label": "提交站点",
      "prop": "submitStationCode",
    "search": true,
    "readonly": true,
    "dicUrl": "/support/swparamstation/dict",
    "props": {
      "label": "name",
      "value": "code"
    },
    display: false
  }, {
    "type": "select",
    "label": "进站线路",
    "prop": "inLineCode",
    cascaderItem: ["inStationCode"],
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamline/dict",
    display: false
  }, {
    "type": "select",
    "label": "进站名称",
    "prop": "inStationCode",
    props: {
      label: 'name',
      value: 'code'
    },
    dicFlag: false,
    dicUrl: "/support/swparamstation/dict/{{key}}",
    display: false
  }, {
    "type": "datetime",
    "label": "进站时间",
    "prop": "inTime",
    format: 'yyyy-MM-dd HH:mm:ss',
    valueFormat: 'yyyy-MM-dd HH:mm:ss',
    display: false
  }, {
    "type": "select",
    "label": "出站线路",
    "prop": "outLineCode",
    cascaderItem: ["outStationCode"],
    props: {
      label: 'name',
      value: 'code'
    },
    dicUrl: "/support/swparamline/dict",
    display: false
  }, {
    "type": "select",
    "label": "出站名称",
    "prop": "outStationCode",
    props: {
      label: 'name',
      value: 'code'
    },
    dicFlag: false,
    dicUrl: "/support/swparamstation/dict/{{key}}",
    display: false
  }, {
    "type": "datetime",
    "label": "出站时间",
    "prop": "outTime",
    format: 'yyyy-MM-dd HH:mm:ss',
    valueFormat: 'yyyy-MM-dd HH:mm:ss',
    display: false
  }, {
    "type": "input",
    "label": "录入人",
    "prop": "inputPerson",
    search: true,
    display: false
  }, {
    "type": "input",
    "label": "录入人工号",
    "prop": "inputPersonCode",
    search: true,
    searchLabelWidth: 100,
    display: false
  }, {
    "type": "datetime",
    "label": "录入时间",
    "prop": "inputTime",
    "format": "yyyy-MM-dd HH:mm:ss",
    "valueFormat": "yyyy-MM-dd HH:mm:ss",
    display: false
  }, {
    "type": "input",
    "label": "车站数据状态",
    "prop": "stationDataStatus",
    "hide": true,
    dicData: [{
      label: '未提交',
      value: 0
    }, {
      label: '已提交',
      value: 1
    }],
    display: false
  }, {
    "type": "input",
    "label": "线路数据状态",
    "prop": "lineDataStatus",
    "hide": true,
    "dicData": [{
      label: '待设置',
      value: 0
    }, {
      label: "未下发",
      value: 1
    }, {
      label: "已下发",
      value: 2
    }, {
      label: '未下发',
      value: 3
    }, {
      label: '已下发',
      value: 4
    }],
    display: false
  }, {
    "type": "select",
    "label": "数据状态",
    "prop": "accDataStatus",
    "dicData": [{
      label: '待设置',
      value: 0
    }, {
      label: "未下发",
      value: 1
    }, {
      label: "已下发",
      value: 2
    }],
    search: true,
    display: false
  }, {
    "type": "input",
    "label": "部门ID",
    "prop": "deptId",
    "display": false,
    "hide": true
  }, {
    "type": "input",
    "label": "创建人ID",
    "prop": "creatorId",
    "display": false,
    "hide": true
  }, {
    "type": "input",
    "label": "创建人名称",
    "prop": "creatorName",
    "display": false,
    "hide": true
  }, {
    "type": "input",
    "label": "创建时间",
    "prop": "createTime",
    "display": false,
    "hide": true
  }, {
    "type": "input",
    "label": "修改时间",
    "prop": "updateTime",
    "display": false,
    "hide": true
  }],
  group: [{
    column: [{
      "type": "input",
      "label": "卡号",
      "prop": "cardOrder",
      searchLabelWidth: 100,
      disabled: true,
      span: 8
    }, {
      "type": "select",
      "label": "提交线路",
      "prop": "submitLineCode",
      "readonly": true,
      "dicUrl": "/support/swparamline/dict",
      "props": {
        "label": "name",
        "value": "code"
      },
      disabled: true,
      span: 8
    }, {
      "type": "select",
      "label": "提交站点",
      "prop": "submitStationCode",
      "readonly": true,
      "dicUrl": "/support/swparamstation/dict",
      "props": {
        "label": "name",
        "value": "code"
      },
      disabled: true,
      span: 8
    }, {
      "type": "input",
      "label": "录入人",
      "prop": "inputPerson",
      disabled: true,
      span: 8
    }, {
      "type": "input",
      "label": "录入人工号",
      "prop": "inputPersonCode",
      searchLabelWidth: 100,
      disabled: true,
      span: 8
    }, {
      "type": "datetime",
      "label": "录入时间",
      "prop": "inputTime",
      "format": "yyyy-MM-dd HH:mm:ss",
      "valueFormat": "yyyy-MM-dd HH:mm:ss",
      disabled: true,
      span: 8
    }, {
      "type": "datetime",
      "label": "进站时间",
      "prop": "inTime",
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      span: 8
    }, {
      "type": "select",
      "label": "进站线路",
      "prop": "inLineCode",
      cascaderItem: ["inStationCode"],
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: "/support/swparamline/dict",
      span: 8
    }, {
      "type": "select",
      "label": "进站名称",
      "prop": "inStationCode",
      props: {
        label: 'name',
        value: 'code'
      },
      dicFlag: false,
      dicUrl: "/support/swparamstation/dict/{{key}}",
      span: 8
    }, {
      "type": "datetime",
      "label": "出站时间",
      "prop": "outTime",
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      span: 8
    }, {
      "type": "select",
      "label": "出站线路",
      "prop": "outLineCode",
      cascaderItem: ["outStationCode"],
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: "/support/swparamline/dict",
      span: 8
    }, {
      "type": "select",
      "label": "出站名称",
      "prop": "outStationCode",
      props: {
        label: 'name',
        value: 'code'
      },
      dicFlag: false,
      dicUrl: "/support/swparamstation/dict/{{key}}",
      span: 8
    }]
  }]
}
